<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ include file="/views/commons/taglibs.jsp" %>
<script type="text/javascript">
var path = "<%=path%>";
</script>
<header role="banner" id="top" class="navbar navbar-static-top bs-docs-nav">
	<div class="container">
		<div class="navbar-header">
			<button aria-expanded="false" aria-controls="bs-navbar" data-target="#bs-navbar" data-toggle="collapse" type="button" class="navbar-toggle collapsed">
				<span class="sr-only">Toggle navigation</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>

			<a class="navbar-brand" href="<%=path%>/views/admin/admin_center.jsp" title="试用区"><img src="<%=path%>/images/logo.png" alt=""  height="48"></a>
		</div>
		<nav class="collapse navbar-collapse" id="bs-navbar">
			<c:choose>
				<c:when test="${sessionAdminUser!=null && sessionAdminUser.adminUserId !=null}">
					<ul class="nav navbar-nav">
						<li>
							<a class="" href="<%=path%>/views/admin/admin_center.jsp" title="业务管理">业务管理</a>
						</li>
						<li>
							<a class="" href="<%=path%>/views/base/base_center.jsp" title="系统管理">系统管理</a>
						</li>
					</ul>
					<ul class="nav navbar-nav navbar-right">
						<li class="login-actions f12 c_e2e2e2">
							<a href="javaScript:void(0)"><fns:encodes type="2" value="${sessionAdminUser.userName}"/>&#12288您好！</a>
							|
							<a href="<%=path%>/admin/adminLogout">退出</a>
							<pm:hasRole name="admin">
							|
							<a href="<%=path%>/views/admin/admin_center.jsp">管理中心</a>
							</pm:hasRole>	
						</li>
					</ul>	
				</c:when>
				<c:otherwise>
					<ul class="nav navbar-nav navbar-right">
						<li class="login-actions">
							<a href="<%=path%>/uncheck/adminLogin">登录</a>
						</li>
					</ul>	
				</c:otherwise>
			</c:choose>			
		</nav>
	</div>
</header>